#!/usr/bin/env python


import roslib; roslib.load_manifest('knobs_rev')
import rospy
import actionlib

from std_msgs.msg import Float32
from pr2_controllers_msgs.msg import SingleJointPositionGoal, SingleJointPositionAction


class WristTurner:
    def __init__(self):
        self.sub = rospy.Subscriber('knob/value', Float32, self.callback)

    def callback(self, msg):
        rospy.loginfo("Turning wrist to:{0}".format(msg.data))


if __name__ == '__main__':
    rospy.init_node('move_wrist')

    turner = WristTurner()

    rospy.spin()

